package com.splic.product.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.splic.common.annotation.Excel;
import lombok.Data;
import com.splic.common.core.domain.BaseEntity;

/**
 * 订单对象 t_order
 * 
 * @author singe
 * @date 2022-01-04
 */
@Data
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 支付订单号 */
    @Excel(name = "支付订单号")
    private String payNo;


    /** 支付类型 */
    @Excel(name = "支付类型")
    private String payType;


    /** 商品id */
    @Excel(name = "商品id")
    private Long goodsId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;


    /** 服务id */
    @Excel(name = "服务id")
    private Long goodsTypeId;

    /** 服务名称 */
    @Excel(name = "服务名称")
    private String goodsTypeName;

    /** 应用id */
    @Excel(name = "应用id")
    private Long productId;

    /** 应用名称 */
    @Excel(name = "应用名称")
    private String productName;

    /** 应用版本 */
    @Excel(name = "应用版本")
    private String productVersion;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 设备id */
    @Excel(name = "设备id")
    private Long deviceId;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 状态[0:未支付，1:已支付，2:退款中,3:已退款] */
    @Excel(name = "状态[0:未支付，1:已支付，2:退款中,3:已退款]")
    private Integer status;

    /** 手机品牌 */
    @Excel(name = "手机品牌")
    private String phoneBrand;

    /** 手机型号 */
    @Excel(name = "手机型号")
    private String phoneModel;

    /** 安卓版本 */
    @Excel(name = "安卓版本")
    private String androidVersion;

    /** 分辨率 */
    @Excel(name = "分辨率")
    private String resolvingPower;

    /** 渠道ID */
    private String channelId;

    /** 渠道名称 */
    @Excel(name = "渠道名称")
    private String channelName;


    /** 账号 */
    @Excel(name = "账号")
    private String account;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 性别 */
    @Excel(name = "性别")
    private Integer sex;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 省编码 */
    @Excel(name = "省编码")
    private String provinceCode;

    /** 市编码 */
    @Excel(name = "市编码")
    private String cityCode;

    /** 县编码 */
    @Excel(name = "县编码")
    private String countyCode;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    private String version;
    private String deviceIdentify;
}
